package com.xunfang.common.enumeration;

public enum UserStatus {

    //常量  public static final String = "aaa"
    //常量  public static final age = 20
    //把常量进行封装成对象 就是 枚举

    INACTIVE(0, "未激活"), ACTIVE(1, "激活"), BLOCKED(2, "锁定");

    private Integer key;
    private String value;
    
    UserStatus(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}